﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.daowen.bll.*,com.daowen.util.PagerMetal"%>
<%@ page import="com.daowen.entity.*" %>
<%@page import="com.daowen.dal.DALBase"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ include file="law.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="daowen" uri="/daowenpager"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title>卡片管理信息</title>
    
    <link rel="stylesheet" href="<%=SystemParam.getSiteRoot() %>/e/css/index.css" type="text/css"></link>
    <link rel="stylesheet" href="<%=SystemParam.getSiteRoot() %>/e/css/box.all.css" type="text/css"></link>
    
    <script src="<%=SystemParam.getSiteRoot() %>/webui/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
    <link href="<%=SystemParam.getSiteRoot() %>/webui/artDialog/skins/default.css" rel="stylesheet" type="text/css" />
    <script src="<%=SystemParam.getSiteRoot() %>/webui/artDialog/jquery.artDialog.source.js" type="text/javascript"></script>
    <script src="<%=SystemParam.getSiteRoot() %>/webui/artDialog/iframeTools.source.js" type="text/javascript"></script>
    <script src="<%=SystemParam.getSiteRoot()%>/webui/combo/combo.js" type="text/javascript"></script>
    <link href="<%=SystemParam.getSiteRoot() %>/webui/treetable/skin/jquery.treetable.css" rel="stylesheet" type="text/css" />
    <link href="<%=SystemParam.getSiteRoot() %>/webui/treetable/skin/jquery.treetable.theme.default.css" rel="stylesheet"
        type="text/css" />
    <script src="<%=SystemParam.getSiteRoot() %>/webui/treetable/js/jquery.treetable.js" type="text/javascript"></script>
     <link href="<%=SystemParam.getSiteRoot() %>/admin/css/web2table.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript">
			$(function() {
			    $("#btnDelete").click(function(){
			        if($(".check:checked").length<1)
			        {
			           top.$.dialog.alert("请选择需要删除的记录");
			           return;
			        } 
			        $(".check:checked").each(function(index,domEle){
			             var id=$(domEle).val();
			             top.$.dialog.confirm("你确定要注销卡片管理信息?", function(){
				             window.location.href=encodeURI('<%=SystemParam.getSiteRoot()%>/admin/bankcardmanager.do?forwardurl=/kehu/bankcardmanager.jsp&actiontype=delete&id='+id);
				         });
			        });
			    });
			    $("#btnCheckAll").click(function(){
			           var ischeck=false;
			           $(".check").each(function(){
			               if($(this).is(":checked"))
			               {
			                  $(this).prop("checked","");
			                  ischeck=false;
			                }
			               else
			               {
			                  $(this).prop("checked","true");
			                  ischeck=true;
			                }
			           });
			           if($(this).text()=="选择记录")
			              $(this).text("取消选择");
			           else
			              $(this).text("选择记录");
			    })
			});
       </script>
	</head>
		<jsp:include page="head.jsp"></jsp:include>

	<div class="wrap">
		<div class="cover-title">
			当前位置：<a href="index.jsp">首页</a> &gt;&gt; 卡片管理
		</div>
	</div>


	<div class="fn-clear"></div>

		<div class="wrap">
		
		   <div class="main">
		   
		       <jsp:include  page="menu.jsp"></jsp:include>
		       <div class="main-content">
					
	<!-- 搜索控件开始 -->
	<div class="search-options">
		<form id="searchForm"
			action="<%=SystemParam.getSiteRoot() %>/admin/bankcardmanager.do"
			method="post">
			<input type="hidden" name="actiontype" value="search" /> 
			<input type="hidden" name="forwardurl" value="/kehu/bankcardmanager.jsp" />
		</form>
	</div>
	<!-- 搜索控件结束 -->
	<div class="clear"></div>
	
	
	<div class="card-box-list">
	
	
			                 <%	
								        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
									if(request.getAttribute("listbankcard")!=null)
								      {
									  List<Bankcard> listbankcard=( List<Bankcard>)request.getAttribute("listbankcard");
								     for(Bankcard  tembankcard  :  listbankcard)
								      {
							%>
							
							
	<div class="card-box">
        <div class="card-box-name">
            <span class="bank-logo">
                <%
                 if(tembankcard.getBankname().equals("中国建设银行")){
                %>
                  <a href="#"><img width="16" height="16" alt="" src="<%=SystemParam.getSiteRoot() %>/admin/images/jianhang.png"></a>
                 
                 <%} %>
                <% if(tembankcard.getBankname().equals("中国工商银行")){
                %>
                  <a href="#"><img width="16" height="16" alt="" src="<%=SystemParam.getSiteRoot() %>/admin/images/icbc.png"></a>
                 
                 <%} %>
                 <% if(tembankcard.getBankname().equals("招商银行")){
                %>
                  <a href="#"><img width="16" height="16" alt="" src="<%=SystemParam.getSiteRoot() %>/admin/images/zhaohang.png"></a>
                 
                 <%} %>
            </span>
            <span class="bank-name" ><%=tembankcard.getBankname() %></span>
            <span class="bank-num4"></span>
            <span class="card-type card-type-CC"></span>
        </div>
        <div class="card-box-express">
            <div class="express-status">
                <span><%=tembankcard.getCardno() %></span>
                <div class="weight14font" style="padding:40px 20px;">${huiyuan.name }</div>
            </div>
            <div class="express-else"><a  href="<%=SystemParam.getSiteRoot()%>/e/huiyuan/bankcarddetails.jsp?id=<%=tembankcard.getId()%>">管理</a></div>
        </div>
        <div class="card-detail"></div>
    </div>
							
							
			
			<%}}%>
			
	<div class="add-card">
	  
	    <a href="<%=SystemParam.getSiteRoot() %>/admin/bankcardmanager.do?actiontype=load&khid=${huiyuan.id}&forwardurl=/e/huiyuan/bankcardadd.jsp" >
	    
	       <i class="iconfont">+</i>
	                        添加银行卡
	      </a>
	
	
	</div>
			
			
			
	  </div>
	
	<div class="clear"></div>
	<daowen:pager id="pager1" attcheform="searchForm" />
	
	</div>
	
	</div>
</body>
</html>
